package cn.iocoder.yudao.module.measure.service.warning.impl;


import cn.iocoder.yudao.module.measure.dal.dataobject.warning.BusinessDeviceWarnPersonConfig;
import cn.iocoder.yudao.module.measure.dal.mysql.warning.BusinessDeviceWarnPersonConfigMapper;
import cn.iocoder.yudao.module.measure.service.warning.BusinessDeviceWarnPersonConfigService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 业务实现类
 * 设备报警联系人配置表
 * </p>
 *
 * @author zhengbzh
 * @date 2025-06-11 14:56:55
 * @create [2025-06-11 14:56:55] [zhengbzh] [代码生成器生成]
 */
@Slf4j
@RequiredArgsConstructor
@Service
@Transactional(readOnly = true)
public class BusinessDeviceWarnPersonConfigServiceImpl implements BusinessDeviceWarnPersonConfigService {


    @Resource
    private BusinessDeviceWarnPersonConfigMapper warnPersonConfigMapper;


    @Override
    public List<BusinessDeviceWarnPersonConfig> getWarningPersonByMeasurePointId(Long measureId) {
        return warnPersonConfigMapper.getWarningPersonByMeasurePointId(measureId);
    }
}


